import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

// https://vite.dev/config/
export default defineConfig({
  base: '/dp/',
  plugins: [svelte()],
  server: {
    proxy: {
      '/admin': {
        target: 'http://47.108.186.81:8090',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/admin/, 'admin')
      }
    }
  }
})
